<!--LiveInternet counter--><script type="text/javascript"><!--
new Image().src = "//counter.yadro.ru/hit?r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";h"+escape(document.title.substring(0,80))+
";"+Math.random();//--></script><!--/LiveInternet-->

<div class="top_block">
	<div class="logo"><img src="/images/beta_top.png" class="beta_top"><div class="logo_inner">
		<a class="logo_mask" href="/">&nbsp;</a>
		<object width="136" height="127"><param  name="wmode" value="transparent" /><embed width="136" height="127" type="application/x-shockwave-flash" wmode="transparent" quality="high" src="/swf/logo2.swf"></object>
	</div></div>
	<div class="login">
		{if isset($currentUser)}
			<div class="login_form">
				<div class="login_form_top">
					<div class="logout_form"><a href="/logout/">&nbsp;</a></div>
					<div class="title user_name_login">
						<table width="245"><tr>
							<td style="height:28px">Здравствуйте, {$currentUser.first_name}!</td><td width="1"><nobr><a href="/profile/wallet/">Мой счет</a></nobr></td>
						</tr></table>
					</div>
				</div>
				<div class="login_form_bg">
					<div class="link_box">
						<div class="mark"><a href="{if !isset($is_consultant)}/profile/{else}/cabinet/{/if}">Личный кабинет</a></div>
						<span class="mark">У вас на счету <a href="/profile/wallet/">{$currentUser.balance} р.</a></span>
					</div>
					<div class="clear"></div>
				</div>
				<div class="login_form_bottom f0">&nbsp;</div>
			</div>
{*			<div class="login_form"></div>
				<div class="login_textblock">
					<div class="button exit"><a href="/logout/"><span class="as"></span><span class="ss">Выйти</span><span class="sa"></span></a></div>
					<span class="title">Здравствуйте, {$currentUser.first_name}!</span>
					<div class="clear"></div>
					<div class="link_box">
						<div class="mark"><a href="/profile">Личный кабинет</a></div>
						<span class="mark">У вас на счету <a href="/profile/wallet/">{$currentUser.balance} р.</a></span>
						<div class="mark"><a href="#">Сообщения</a>&nbsp;<span>(2)</span></div>
						<div class="mark"><a href="#">Ваши заказы</a></div>
					</div>
				</div> *}

		{else}
			<div style="padding-top:35px">
				<div class="zlogin_form"></div>
				<div class="zlogin_textblock">
					<div style="height:20px">
						<div style="padding-top:3px;float:left;"><input type="text" class="zlog" value="Телефон" default="Телефон"><input type="password" class="zpas" value="Пароль" default="Пароль"></div>
						<div id="login_button" class="button exit"><a href="#" onclick="return Kolizeo.login()"><span class="as"></span><span class="ss">Войти</span><span class="sa"></span></a></div>
					</div>
					<div class="login_about">
						<img src="/images/marker.gif">
						<a href="/registration">Регистрация</a>
						{*<img src="/images/marker.gif" style="padding-left:20px">
						<a href="#">Забыли пароль?</a> *}
					</div>
				</div>
			</div>
		{/if}
	</div>
	<img src="/images/pixel.gif" width="332" height="108" class="phone" alt="8-800-10-07-047 с моб. 07 047">
</div>
<script>
	{if $currentUser}
		Kolizeo.user = Array();
		Kolizeo.user.balance = {$currentUser.balance};
	{/if}
</script>